package com.weilai.service.serviceImpl;

import com.weilai.dao.CategoriesDao;
import com.weilai.domain.Categories;
import com.weilai.domain.Posts;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CategoriesServiceImpl {
    @Autowired
    private CategoriesDao categoriesDao;
    public Categories selectById(int id){
        Categories categories = categoriesDao.selectById(id);
        return categories;
    }

    public Categories selectByName(String name){
        Categories categories = categoriesDao.selectByName(name);
        return categories;
    }
}
